<div class="card-block dt-responsive">

    <div class="table-responsive">
        <div id="dom-jqry_wrapper" class="dataTables_wrapper dt-bootstrap4">

            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <g:sortableColumn property="subject" title="标题"/>
                    <g:sortableColumn property="user" title="用户"/>
                    %{-- <g:sortableColumn property="activity" title="活动"/>
                    <g:sortableColumn property="asset" title="资产"/>
                    <g:sortableColumn property="contact" title="联系人"/>
                    <g:sortableColumn property="campaign" title="市场活动"/>
                    <g:sortableColumn property="opportunity" title="商机"/> --}%
                    <g:sortableColumn property="createBy" title="创建人"/>
                    <g:sortableColumn property="modifyBy" title="修改人"/>
                    <g:sortableColumn property="createdDate" title="创建时间"/>
                    <g:sortableColumn property="modifiedDate" title="修改时间"/>
                    <g:sortableColumn  class="text-center" width="8%" property="buildTime" title="操作"/>
                </tr>
                </thead>
                <tbody>
                <g:each in="${noteList}">
                    <tr>
                        <td>
                            <g:link action="show" controller="note" id="${it?.id}"
                                    class="noteText">${it?.subject}</g:link>
                        </td>

                        <td>${it?.user}</td>
                        %{-- <td>${it?.activity?.name}</td>
                        <td>${it?.asset?.name}</td>
                        <td>${it?.contact?.fullName}</td>
                        <td>${it?.campaign}</td>
                        <td>${it?.opportunity?.serialNumber}</td> --}%
                        <td>${it?.createBy}</td>
                        <td>${it?.modifyBy}</td>
                        <td><g:formatDate date="${it?.createdDate}"
                                          format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                        <td><g:formatDate date="${it?.modifiedDate}"
                                          format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>

                        <td  class="text-center">
                            <g:link class="m-r-15 text-primary ${this.notePermission?.name == 'Read' ? 'disabled' : ''}"
                                    controller="note" action="edit"
                                    id="${it?.id}">
                                <i class="icofont icofont-ui-edit"></i>
                                
                            </g:link>
                            <g:form controller="note" action="delete" id="${it.id}" class="inline" method="DELETE">
                                <button class="deleteBtn text-danger ${this.notePermission?.name == 'Read' ? 'disabled' : ''}" type="button">
                                    <i class="icofont icofont-trash"></i>

                                </button>
                            </g:form>

                        </td>
                    </tr>
                </g:each>
                </tbody>

            </table>


        </div>

    </div>

</div>

